<?php
class UtinitiesModel
{
	public static function translateToString($array){
		$return_str = "";
		if($array)
			foreach ($array as $row){
				if($return_str != "")
					$return_str .= ",";
				$return_str .= $row;
			}
		
		return $return_str;
	}
	
	public static function translateToArray($strings){
		if(!$strings)
			return array();
		return explode(",", $strings);
	}
}
?>